<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	<script>
		let s = setInterval(()=>{
			console.log(1);
		}, 500)
		clearInterval(s)
		// 定时器是不会赋值覆盖的  只能清除
		s = setInterval(()=>{
			console.log(2);
		}, 500)
	</script>
</body>
</html>